import json from './data/build.json';
import {ParkingLot} from './types.ts';
import {Build, Floor} from 'src/answer.tsx';

export const listService = {
    getListByFloor: async (level: number):Promise<Floor<ParkingLot>> => {
        return new Promise(resolve => setTimeout(() => resolve(json.floors[level]), 2000))
    },

    getAllCarPlaces: async ():Promise<Build<ParkingLot>> => {
        console.log(1)
        return new Promise(resolve => setTimeout(() => resolve(json), 2000))
    }
}
